scrolledwindow: Remove unneeded checks
authorBenjamin Otte <otte@redhat.com>
Wed, 30 Apr 2014 07:12:40 +0000 (09:12 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 1 May 2014 12:51:28 +0000 (14:51 +0200)
Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

gtk/gtkscrolledwindow.c

index 8c33e985fb2fb17cfd2bcb8d6439f9b5026744fb..cd5aaebb33ef40aa5a8b40f0e0a6201087b2674d 100644 (file)
@@ -3211,17 +3211,13 @@ gtk_scrolled_window_get_preferred_size (GtkWidget      *widget,
 
   if (orientation == GTK_ORIENTATION_HORIZONTAL)
     {
-      if (minimum_size)
-       *minimum_size = minimum_req.width;
-      if (natural_size)
-       *natural_size = natural_req.width;
+      *minimum_size = minimum_req.width;
+      *natural_size = natural_req.width;
     }
   else
     {
-      if (minimum_size)
-       *minimum_size = minimum_req.height;
-      if (natural_size)
-       *natural_size = natural_req.height;
+      *minimum_size = minimum_req.height;
+      *natural_size = natural_req.height;
     }
 }